Look at ExampleNative.cpp to see how to make dlls with natives in them.  Rename your dll to .xjp and stick them 
in the jNatives folder.  Add your natives to common.j.  Enjoy.  The test map button for WE will not work properly.